package com.sun.lock;

import java.util.concurrent.locks.ReentrantLock;

public class ReentrantLockMain {

    static {
        int a = 1;
//        int c = a + b;
    }

    static int b = 3;

    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        lock.lock();
        lock.tryLock();
        lock.unlock();
    }
}
